package com.albaba.designpattern.builder.text_001.builder;

import com.albaba.designpattern.builder.text_001.entity.Bike;

/**
 * @author zx
 * @version 1.0
 * @description 摩拜单车建造者
 * @date 2025/2/19 20:33
 */
public class MobikeBuilder extends Builder{
    @Override
    public void buildFrame() {
        System.out.println("build frame");
        mBike.setFrame("铝合金车架");
    }

    @Override
    public void buildSeat() {
        System.out.println("build seat");
        mBike.setSeat("真皮车座");
    }

    @Override
    public Bike createBike() {
        return mBike;
    }
}
